package main

import "fmt"

func main() {

	sum := 0
	for i := 1; i <= 100; i++ {
		sum = sum + i
	}
	fmt.Println("sum= ", sum)

	str := "abc"
	for j := 0; j < len(str); j++ {
		fmt.Printf("str[%d]=%c\n", j, str[j])
	}

	for k, data := range str {
		fmt.Printf("str[%d]=%c\n", k, data)
	}
}
